﻿using System;
using System.Collections.Generic;

namespace VelocityShop.Entities
{
    [Serializable()]
    public class Catalog
    {
        private string _id;
        private string _currency;
        protected IList<CatalogItem> _items;
        private DateTime _creationDate;

        private DateTime _lastUpdate;

        public Catalog() { }

        public string Id
        {
            get { return _id; }
        }

        public string Currency
        {
            get { return _currency; }
        }

        public DateTime CreationDate
        {
            get { return _creationDate; }
        }

        public DateTime LastUpdate
        {
            get { return _lastUpdate; }
            set { _lastUpdate = value; }
        }

        public Catalog(string catalogId, string currency)
        {
            _id = catalogId;
            _currency = currency;
            _creationDate = DateTime.Now;
            _lastUpdate = DateTime.Now;
            //_items = new List<CatalogItem>();
        }

        public virtual IList<CatalogItem> Items
        {
            get { return _items; }
        }

        public IList<Category> Categories;

    }
}
